using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PanelMyTrainingDetailScrollCtrl : MonoBehaviour
{
    public RectTransform text;
    public float offset = 210;
    
    private RectTransform rectTransform;
    
    void Awake()
    {
        rectTransform = GetComponent<RectTransform>();
    }

    void Update()
    {
        rectTransform.anchorMin = new Vector2(0, 0);
        rectTransform.anchorMax = new Vector2(1, 1);
        rectTransform.offsetMin = new Vector2(38, 180);
        rectTransform.offsetMax = new Vector2(0, -(text.sizeDelta.y + offset));
    }
}
